Token Info
Queries token information for the specified CW20 address and chain.
query Cw($contract: String!, $chainUid: String!) {
cw(contract: $contract, chain_uid: $chainUid) {
token_info {
name
symbol
decimals
total_supply
}
}
}
Example
curl --request POST \
--header 'content-type: application/json' \
--url 'https://api.euclidprotocol.com/graphql' \
--data '{"query":"query Cw($contract: String!, $chainUid: String!) {\n cw(contract: $contract, chain_uid: $chainUid) {\n token_info {\n name\n symbol\n decimals\n total_supply\n }\n }\n}","variables":{"contract":"wasm1rluylt6fnh5a55szyuh2qsg69nfsgcwm5faq8ujesdtd0yfugnkq2ft2ax","chainUid":"ethereum"}}'
Return Fields
Field | Type | Description |
---|---|---|
name | String | The name of the token. |
symbol | String | The symbol of the token. |
decimals | u8 | The number of decimal places of the token. |
total_supply | Uint128 | The total supply of the token. |